import { createApp, reactive } from "vue";
// import Antd from "ant-design-vue";
// import "ant-design-vue/dist/antd.css";
import "./css/common.css";
// import { Button } from "ant-design-vue";
// import Button from 'ant-design-vue/lib/button';
// import 'ant-design-vue/lib/button/style'; //

import plugin from "@/plugin/plugin.js";

import App from "./App.vue";
// import App from "./Test.vue";
let app = createApp(App);
// app.use(Antd);
// app.use(Button);
app.use(plugin);
let session = {
  user: { name: "admin" },
  list: new Array(0).fill(1).map((item, i) => ({ i })),
  setUser(user) {
    this.user = user;
  }
};
window.s = session;
window.ss = reactive(session);
window.s1 = reactive(session);
app.provide("session", window.ss);
window.app = app.mount("#app");
window.ap = app;
